package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by DK on 16/10/10.
 * 产品到店自提实体
 */
@Entity
@Table(name = "product_merchant_stores")
@DynamicInsert
@DynamicUpdate
public class ProductMerchantStores extends IDEntityMall {

    @Column(columnDefinition = "varchar(100) comment '产品ID'")
    private Long productId;

    @Column(columnDefinition = "varchar(100) comment '商家门店ID'")
    private Long merchantStoreId;

    @Column(columnDefinition = "varchar(100) comment '商家ID'")
    private Long merchantId;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getMerchantStoreId() {
        return merchantStoreId;
    }

    public void setMerchantStoreId(Long merchantStoreId) {
        this.merchantStoreId = merchantStoreId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    @Override
    public String toString() {
        return "ProductMerchantStores{" +
                "productId=" + productId +
                ", id=" + id +
                ", merchantStoreId=" + merchantStoreId +
                ", dateCreated=" + dateCreated +
                ", merchantId=" + merchantId +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
